from django.shortcuts import render
from talk.models import talksInfo
# Create your views here.

def talkView(request):
    title = '讨论'
    talkslist = talksInfo.objects.all()
    t = request.GET.get('t', '')
    if t:
        talkslist = talkslist.filter(types=t)

    return render(request, 'talk.html', locals())